package com.itheima.reggie.service;

import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.Page;

import java.util.List;

public interface DishService {
    void saveWithFlavor(DishDto dishDto);

    Page<DishDto> page(Integer page, Integer pageSize, String name);

    DishDto getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDto dishDto);

    List<DishDto> findByCategoryId(Long categoryId,Integer status);

    void deleteByIds(List<Long> ids);


    void updateStatus(List<Long> ids, DishDto dishDto, Integer status);
}
